package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Badreply;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

public interface BadreplyService {

    /**
     *
     * @param badreply
     * @Title updateBadreply
     * @Description 修改不良对策
     */
    JSONObject updateBadreply(Badreply badreply);

    /**
     *
     * @Title selectAll
     * @Description 查询所有不良对策
     */
    JSONObject selectAll(Badreply badreply);

    /**
     *
     * @Title insertBadreply
     * @Description 添加不良对策
     */
    JSONObject insertBadreply(Badreply badreply);

    /**
     *
     * @Title deleteBadreply
     * @Description 1 启用 2 删除 3 停用  不良对策
     */
    JSONObject deleteBadreply(Long[] badreplyIds, Integer dataState);

    /**
     * @author: louk
     * @Description:Excel导入的属性判断
     * @date: 2019/11/5 15:44
     */
    String checkNoRepeat(Badreply badreply);
    
    /**
     * @author: louk
     * @Description:批量新增不良对策
     * @date: 2019/11/5 15:56
     *
     */
    JSONObject updateListBadreply(List<Badreply> badreplyList);

}
